Integrand size = 20, antiderivative size = 75 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=-\frac {(A-B x) \sqrt {a+c x^2}}{x}+A \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )-\sqrt {a} B \text {arctanh}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right ) \]
-B*arctanh((c*x^2+a)^(1/2)/a^(1/2))*a^(1/2)+A*arctanh(x*c^(1/2)/(c*x^2+a)^ (1/2))*c^(1/2)-(-B*x+A)*(c*x^2+a)^(1/2)/x
Time = 0.16 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.17 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=\frac {(-A+B x) \sqrt {a+c x^2}}{x}+2 \sqrt {a} B \text {arctanh}\left (\frac {\sqrt {c} x-\sqrt {a+c x^2}}{\sqrt {a}}\right )-A \sqrt {c} \log \left (-\sqrt {c} x+\sqrt {a+c x^2}\right ) \]
((-A + B*x)*Sqrt[a + c*x^2])/x + 2*Sqrt[a]*B*ArcTanh[(Sqrt[c]*x - Sqrt[a + c*x^2])/Sqrt[a]] - A*Sqrt[c]*Log[-(Sqrt[c]*x) + Sqrt[a + c*x^2]]
Time = 0.22 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {536, 538, 224, 219, 243, 73, 221}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sqrt {a+c x^2} (A+B x)}{x^2} \, dx\) |
\(\Big \downarrow \) 536 |
\(\displaystyle \int \frac {a B+A c x}{x \sqrt {c x^2+a}}dx-\frac {\sqrt {a+c x^2} (A-B x)}{x}\) |
\(\Big \downarrow \) 538 |
\(\displaystyle A c \int \frac {1}{\sqrt {c x^2+a}}dx+a B \int \frac {1}{x \sqrt {c x^2+a}}dx-\frac {\sqrt {a+c x^2} (A-B x)}{x}\) |
\(\Big \downarrow \) 224 |
\(\displaystyle A c \int \frac {1}{1-\frac {c x^2}{c x^2+a}}d\frac {x}{\sqrt {c x^2+a}}+a B \int \frac {1}{x \sqrt {c x^2+a}}dx-\frac {\sqrt {a+c x^2} (A-B x)}{x}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle a B \int \frac {1}{x \sqrt {c x^2+a}}dx+A \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )-\frac {\sqrt {a+c x^2} (A-B x)}{x}\) |
\(\Big \downarrow \) 243 |
\(\displaystyle \frac {1}{2} a B \int \frac {1}{x^2 \sqrt {c x^2+a}}dx^2+A \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )-\frac {\sqrt {a+c x^2} (A-B x)}{x}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle \frac {a B \int \frac {1}{\frac {x^4}{c}-\frac {a}{c}}d\sqrt {c x^2+a}}{c}+A \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )-\frac {\sqrt {a+c x^2} (A-B x)}{x}\) |
\(\Big \downarrow \) 221 |
\(\displaystyle A \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )-\frac {\sqrt {a+c x^2} (A-B x)}{x}-\sqrt {a} B \text {arctanh}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )\) |
-(((A - B*x)*Sqrt[a + c*x^2])/x) + A*Sqrt[c]*ArcTanh[(Sqrt[c]*x)/Sqrt[a + c*x^2]] - Sqrt[a]*B*ArcTanh[Sqrt[a + c*x^2]/Sqrt[a]]
3.4.20.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x /Rt[-a/b, 2]], x] /; FreeQ[{a, b}, x] && NegQ[a/b]
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b}, x] && !GtQ[a, 0]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[1/2 Subst[In t[x^((m - 1)/2)*(a + b*x)^p, x], x, x^2], x] /; FreeQ[{a, b, m, p}, x] && I ntegerQ[(m - 1)/2]
Int[(((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_))/(x_)^2, x_Symbol] :> S imp[(-(2*c*p - d*x))*((a + b*x^2)^p/(2*p*x)), x] + Int[(a*d + 2*b*c*p*x)*(( a + b*x^2)^(p - 1)/x), x] /; FreeQ[{a, b, c, d}, x] && GtQ[p, 0] && Integer Q[2*p]
Int[((c_) + (d_.)*(x_))/((x_)*Sqrt[(a_) + (b_.)*(x_)^2]), x_Symbol] :> Simp [c Int[1/(x*Sqrt[a + b*x^2]), x], x] + Simp[d Int[1/Sqrt[a + b*x^2], x] , x] /; FreeQ[{a, b, c, d}, x]
Time = 0.09 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.04
method | result | size |
risch | \(-\frac {A \sqrt {c \,x^{2}+a}}{x}+A \sqrt {c}\, \ln \left (x \sqrt {c}+\sqrt {c \,x^{2}+a}\right )+B \sqrt {c \,x^{2}+a}-B \sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {c \,x^{2}+a}}{x}\right )\) | \(78\) |
default | \(B \left (\sqrt {c \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {c \,x^{2}+a}}{x}\right )\right )+A \left (-\frac {\left (c \,x^{2}+a \right )^{\frac {3}{2}}}{a x}+\frac {2 c \left (\frac {x \sqrt {c \,x^{2}+a}}{2}+\frac {a \ln \left (x \sqrt {c}+\sqrt {c \,x^{2}+a}\right )}{2 \sqrt {c}}\right )}{a}\right )\) | \(103\) |
-A*(c*x^2+a)^(1/2)/x+A*c^(1/2)*ln(x*c^(1/2)+(c*x^2+a)^(1/2))+B*(c*x^2+a)^( 1/2)-B*a^(1/2)*ln((2*a+2*a^(1/2)*(c*x^2+a)^(1/2))/x)
Time = 0.35 (sec) , antiderivative size = 333, normalized size of antiderivative = 4.44 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=\left [\frac {A \sqrt {c} x \log \left (-2 \, c x^{2} - 2 \, \sqrt {c x^{2} + a} \sqrt {c} x - a\right ) + B \sqrt {a} x \log \left (-\frac {c x^{2} - 2 \, \sqrt {c x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, \sqrt {c x^{2} + a} {\left (B x - A\right )}}{2 \, x}, -\frac {2 \, A \sqrt {-c} x \arctan \left (\frac {\sqrt {-c} x}{\sqrt {c x^{2} + a}}\right ) - B \sqrt {a} x \log \left (-\frac {c x^{2} - 2 \, \sqrt {c x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) - 2 \, \sqrt {c x^{2} + a} {\left (B x - A\right )}}{2 \, x}, \frac {2 \, B \sqrt {-a} x \arctan \left (\frac {\sqrt {-a}}{\sqrt {c x^{2} + a}}\right ) + A \sqrt {c} x \log \left (-2 \, c x^{2} - 2 \, \sqrt {c x^{2} + a} \sqrt {c} x - a\right ) + 2 \, \sqrt {c x^{2} + a} {\left (B x - A\right )}}{2 \, x}, -\frac {A \sqrt {-c} x \arctan \left (\frac {\sqrt {-c} x}{\sqrt {c x^{2} + a}}\right ) - B \sqrt {-a} x \arctan \left (\frac {\sqrt {-a}}{\sqrt {c x^{2} + a}}\right ) - \sqrt {c x^{2} + a} {\left (B x - A\right )}}{x}\right ] \]
[1/2*(A*sqrt(c)*x*log(-2*c*x^2 - 2*sqrt(c*x^2 + a)*sqrt(c)*x - a) + B*sqrt (a)*x*log(-(c*x^2 - 2*sqrt(c*x^2 + a)*sqrt(a) + 2*a)/x^2) + 2*sqrt(c*x^2 + a)*(B*x - A))/x, -1/2*(2*A*sqrt(-c)*x*arctan(sqrt(-c)*x/sqrt(c*x^2 + a)) - B*sqrt(a)*x*log(-(c*x^2 - 2*sqrt(c*x^2 + a)*sqrt(a) + 2*a)/x^2) - 2*sqrt (c*x^2 + a)*(B*x - A))/x, 1/2*(2*B*sqrt(-a)*x*arctan(sqrt(-a)/sqrt(c*x^2 + a)) + A*sqrt(c)*x*log(-2*c*x^2 - 2*sqrt(c*x^2 + a)*sqrt(c)*x - a) + 2*sqr t(c*x^2 + a)*(B*x - A))/x, -(A*sqrt(-c)*x*arctan(sqrt(-c)*x/sqrt(c*x^2 + a )) - B*sqrt(-a)*x*arctan(sqrt(-a)/sqrt(c*x^2 + a)) - sqrt(c*x^2 + a)*(B*x - A))/x]
Time = 1.96 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.65 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=- \frac {A \sqrt {a}}{x \sqrt {1 + \frac {c x^{2}}{a}}} + A \sqrt {c} \operatorname {asinh}{\left (\frac {\sqrt {c} x}{\sqrt {a}} \right )} - \frac {A c x}{\sqrt {a} \sqrt {1 + \frac {c x^{2}}{a}}} - B \sqrt {a} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {c} x} \right )} + \frac {B a}{\sqrt {c} x \sqrt {\frac {a}{c x^{2}} + 1}} + \frac {B \sqrt {c} x}{\sqrt {\frac {a}{c x^{2}} + 1}} \]
-A*sqrt(a)/(x*sqrt(1 + c*x**2/a)) + A*sqrt(c)*asinh(sqrt(c)*x/sqrt(a)) - A *c*x/(sqrt(a)*sqrt(1 + c*x**2/a)) - B*sqrt(a)*asinh(sqrt(a)/(sqrt(c)*x)) + B*a/(sqrt(c)*x*sqrt(a/(c*x**2) + 1)) + B*sqrt(c)*x/sqrt(a/(c*x**2) + 1)
Time = 0.18 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.79 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=A \sqrt {c} \operatorname {arsinh}\left (\frac {c x}{\sqrt {a c}}\right ) - B \sqrt {a} \operatorname {arsinh}\left (\frac {a}{\sqrt {a c} {\left | x \right |}}\right ) + \sqrt {c x^{2} + a} B - \frac {\sqrt {c x^{2} + a} A}{x} \]
A*sqrt(c)*arcsinh(c*x/sqrt(a*c)) - B*sqrt(a)*arcsinh(a/(sqrt(a*c)*abs(x))) + sqrt(c*x^2 + a)*B - sqrt(c*x^2 + a)*A/x
Time = 0.30 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.36 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=\frac {2 \, B a \arctan \left (-\frac {\sqrt {c} x - \sqrt {c x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} - A \sqrt {c} \log \left ({\left | -\sqrt {c} x + \sqrt {c x^{2} + a} \right |}\right ) + \sqrt {c x^{2} + a} B + \frac {2 \, A a \sqrt {c}}{{\left (\sqrt {c} x - \sqrt {c x^{2} + a}\right )}^{2} - a} \]
2*B*a*arctan(-(sqrt(c)*x - sqrt(c*x^2 + a))/sqrt(-a))/sqrt(-a) - A*sqrt(c) *log(abs(-sqrt(c)*x + sqrt(c*x^2 + a))) + sqrt(c*x^2 + a)*B + 2*A*a*sqrt(c )/((sqrt(c)*x - sqrt(c*x^2 + a))^2 - a)
Time = 11.42 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.19 \[ \int \frac {(A+B x) \sqrt {a+c x^2}}{x^2} \, dx=B\,\sqrt {c\,x^2+a}-\frac {A\,\sqrt {c\,x^2+a}}{x}-B\,\sqrt {a}\,\mathrm {atanh}\left (\frac {\sqrt {c\,x^2+a}}{\sqrt {a}}\right )-\frac {A\,\sqrt {c}\,\mathrm {asin}\left (\frac {\sqrt {c}\,x\,1{}\mathrm {i}}{\sqrt {a}}\right )\,\sqrt {c\,x^2+a}\,1{}\mathrm {i}}{\sqrt {a}\,\sqrt {\frac {c\,x^2}{a}+1}} \]